package ${groupId}.controller.boss.login.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

import com.system.core.utils.CaptchaUtils;

import lombok.Data;

/**
 * Created by admin on 2018/12/4.
 */
@Data
public class BossLoginForm {

    @NotBlank(message = "请输入用户名")
    private String userName;
    @NotBlank(message = "请输入密码")
    private String password;
//    @Size(min = CaptchaUtils.CAPTCHA_LENGTH, max = CaptchaUtils.CAPTCHA_LENGTH, message = "请输入正确的验证码")
    private String captcha;
    private String refer;
    private boolean rememberMe;
    private boolean showCaptcha = false;
    private String loginType="boss";

    public void reset() {
        this.password = null;
        this.captcha = null;
    }
}
